home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 59 / 59.xpi / chrome / useragentswitcher.jar / content / useragentswitcher / options / options.xul < prev   
Extensible Markup Language  |  2009-06-30  |  6KB  |  108 lines

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://useragentswitcher/content/options/options.css" type="text/css"?>
  3.  
  4. <!DOCTYPE dialog SYSTEM "chrome://useragentswitcher/locale/useragentswitcher.dtd">
  5.  
  6. <dialog buttons="accept,cancel"
  7.         id="useragentswitcher-options-dialog"
  8.         ondialogaccept="UserAgentSwitcherOptions.saveOptions()"
  9.         onload="UserAgentSwitcherOptions.initialize()"
  10.         onunload="UserAgentSwitcherOptions.uninitialize()"
  11.         title="&useragentswitcher.options.title;"
  12.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  13.  
  14.     <!--
  15.     <script src="chrome://global/content/nsDragAndDrop.js" type="application/x-javascript"/>
  16.     <script src="chrome://global/content/nsTransferable.js" type="application/x-javascript"/>
  17.     -->
  18.   <script src="chrome://useragentswitcher/content/common/dom.js" type="application/x-javascript"/>
  19.   <script src="chrome://useragentswitcher/content/common/log.js" type="application/x-javascript"/>
  20.   <script src="chrome://useragentswitcher/content/common/preferences.js" type="application/x-javascript"/>
  21.   <script src="chrome://useragentswitcher/content/common/string.js" type="application/x-javascript"/>
  22.   <script src="chrome://useragentswitcher/content/common/stringbundle.js" type="application/x-javascript"/>
  23.   <script src="chrome://useragentswitcher/content/options/options.js" type="application/x-javascript"/>
  24.   <script src="chrome://useragentswitcher/content/upgrade.js" type="application/x-javascript"/>
  25.   <script src="chrome://useragentswitcher/content/xml/export.js" type="application/x-javascript"/>
  26.   <script src="chrome://useragentswitcher/content/xml/import.js" type="application/x-javascript"/>
  27.  
  28.   <stringbundleset id="stringbundleset">
  29.     <stringbundle id="useragentswitcher-string-bundle" src="chrome://useragentswitcher/locale/useragentswitcher.properties"/>
  30.   </stringbundleset>
  31.  
  32.   <vbox flex="1">
  33.         <groupbox>
  34.             <caption label="&useragentswitcher.general;"/>
  35.             
  36.             <hbox flex="1">
  37.                 <checkbox id="useragentswitcher-menu-hide" label="&useragentswitcher.menu.hide;"/>
  38.                 <spacer flex="1"/>
  39.                 <button label="&useragentswitcher.reset.options;" oncommand="UserAgentSwitcherOptions.resetOptions()"/>
  40.             </hbox>
  41.         </groupbox>
  42.  
  43.         <groupbox flex="1">
  44.             <caption label="&useragentswitcher.user.agents;"/>
  45.             
  46.             <hbox flex="1">
  47.                 <tree id="useragentswitcher-options-tree" context="useragentswitcher-user-agents-context" flex="1" hidecolumnpicker="true" onselect="UserAgentSwitcherOptions.selectUserAgent(this)">
  48.                     <treecols>
  49.                         <treecol label="&useragentswitcher.user.agent;" flex="1" primary="true"/>
  50.                     </treecols>
  51.                     <treechildren id="useragentswitcher-options-user-agents"/>
  52.                 </tree>
  53.                 <vbox>
  54.                     <button id="useragentswitcher-move-up-button" disabled="true" label="&useragentswitcher.move.up;" oncommand="UserAgentSwitcherOptions.moveUp()"/>
  55.                     <button id="useragentswitcher-move-down-button" disabled="true" label="&useragentswitcher.move.down;" oncommand="UserAgentSwitcherOptions.moveDown()"/>
  56.                 </vbox>
  57.             </hbox>
  58.             
  59.             <hbox>
  60.                 <button label="&useragentswitcher.new;" type="menu">
  61.                     <menupopup>
  62.                         <menuitem label="&useragentswitcher.new.user.agent;" oncommand="UserAgentSwitcherOptions.newUserAgent()"/>
  63.                         <menuitem label="&useragentswitcher.new.folder;" oncommand="UserAgentSwitcherOptions.newFolder()"/>
  64.                         <menuitem label="&useragentswitcher.new.separator;" oncommand="UserAgentSwitcherOptions.newSeparator()"/>
  65.                     </menupopup>
  66.                 </button> 
  67.                 <button id="useragentswitcher-edit-button" disabled="true" label="&useragentswitcher.edit;" oncommand="UserAgentSwitcherOptions.edit()"/>
  68.                 <button id="useragentswitcher-delete-button" disabled="true" label="&useragentswitcher.delete;" oncommand="UserAgentSwitcherOptions.deleteUserAgents()"/>
  69.             </hbox>
  70.         </groupbox>
  71.         
  72.         <groupbox>
  73.             <caption label="&useragentswitcher.import.export;"/>
  74.             
  75.             <vbox>
  76.                 <hbox align="center">
  77.                     <button label="&useragentswitcher.import;" oncommand="UserAgentSwitcherOptions.importUserAgents()"/>
  78.                     <spacer flex="1"/>
  79.                     <checkbox id="useragentswitcher-import-overwrite" label="&useragentswitcher.import.overwrite;"/>
  80.                 </hbox>
  81.                 <hbox align="center">
  82.                     <button label="&useragentswitcher.export;" oncommand="UserAgentSwitcherOptions.exportUserAgents()"/>
  83.                     <spacer flex="1"/>
  84.                 <description onclick="UserAgentSwitcherOptions.openUserAgentsPage()" class="url">&useragentswitcher.download.user.agents;</description>
  85.                 </hbox>
  86.             </vbox>
  87.         </groupbox>
  88.   </vbox>
  89.   
  90.   <popupset>
  91.       <popup id="useragentswitcher-user-agents-context" onpopupshowing="UserAgentSwitcherOptions.updateContextMenu()">
  92.             <menuitem label="&useragentswitcher.new.user.agent;" oncommand="UserAgentSwitcherOptions.newUserAgent()"/>
  93.             <menuitem label="&useragentswitcher.new.folder;" oncommand="UserAgentSwitcherOptions.newFolder()"/>
  94.             <menuitem label="&useragentswitcher.new.separator;" oncommand="UserAgentSwitcherOptions.newSeparator()"/>
  95.             <menuseparator/>
  96.             <menuitem id="useragentswitcher-edit-menu" label="&useragentswitcher.edit;" oncommand="UserAgentSwitcherOptions.edit()"/>
  97.             <menuseparator/>
  98.             <menuitem id="useragentswitcher-cut" label="&useragentswitcher.cut;" oncommand="UserAgentSwitcherOptions.cut()"/>
  99.             <menuitem id="useragentswitcher-copy" label="&useragentswitcher.copy;" oncommand="UserAgentSwitcherOptions.copy()"/>
  100.             <menuitem id="useragentswitcher-paste" label="&useragentswitcher.paste;" oncommand="UserAgentSwitcherOptions.paste()"/>
  101.             <menuitem id="useragentswitcher-delete-menu" label="&useragentswitcher.delete;" oncommand="UserAgentSwitcherOptions.deleteUserAgents()"/>
  102.             <menuseparator/>
  103.             <menuitem id="useragentswitcher-move-up" label="&useragentswitcher.move.up;" oncommand="UserAgentSwitcherOptions.moveUp()"/>
  104.             <menuitem id="useragentswitcher-move-down" label="&useragentswitcher.move.down;" oncommand="UserAgentSwitcherOptions.moveDown()"/>
  105.       </popup>
  106.   </popupset>
  107. </dialog>
  108.